package algorithms;
import org.apache.commons.configuration.ConfigurationException;

import commons.SimilarityItem;

import datamanagers.DataManager;
import datamanagers.DataManagerException;


public abstract class SimilarityAlgorithm {

	protected DataManager datamanager;

	public void setDatamanager(DataManager datamanager) {
		this.datamanager = datamanager;
	}

	public DataManager getDatamanager() {
		return this.datamanager;
	}

	protected int common_ratings_size = 0;

	public int getCommonRatingsSize() {
		return common_ratings_size;
	}

	public abstract SimilarityItem eval(int UserId1, int UserId2)
			throws DataManagerException, NumberFormatException, ConfigurationException;


}
